package Algorithm;

public class IsUpper {
    public static boolean isUpper(int[] array){
        for(int i=0;i<array.length-1;i++){
            if(array[i]>array[i+1]){
                return false;
            }
        }
        return true;
    }
    public static void main(String[] args) {
        int[] array=new int[]{1,2,3,4,5,6,7,8};
        System.out.println(isUpper(array));
    }
}
